﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Net;

namespace SDLITS.Common
{
    /// <summary>
    /// HTTP处理类
    /// </summary>
    public class HttpHelper
    {
        /// <summary>
        /// 采集地址的HTML
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public static string DownString(string url)
        {
            using (WebClient wc = new WebClient())
            {
                wc.Encoding = Encoding.Default;
                string str = wc.DownloadString(url);
                return str;
            }
        }
    }
}